package com.deft.design.visitor.visitor;

import com.deft.design.visitor.user.impl.Student;
import com.deft.design.visitor.user.impl.Teacher;

/**
 * 访问数据接口
 *
 * @author Hide丶love
 * @date 2022/05/30
 **/
public interface Visitor {

    /**
     * 访问学生信息
     *
     * @param student 学生
     */
    void visit(Student student);

    /**
     * 访问老师信息
     *
     * @param teacher 老师
     */
    void visit(Teacher teacher);
}
